package cn.aias.rbac.application.converter;

import cn.aias.rbac.domain.model.User;
import cn.aias.rbac.application.dto.UserDTO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface UserConverter {
    UserDTO toDTO(User user);       // 领域对象转DTO
    User toEntity(UserDTO userDTO); // DTO转领域对象
}
